<?php
/**
 * Created by IntelliJ IDEA.
 * User: HXL
 * Date: 2018/7/5
 * Time: 11:16
 */
namespace app\orders\validate;

use think\Validate;

class Admins extends Validate{

    protected $rule=array(
        'username'=>'require|unique:admins'
    );
    protected $message=array(
        'username.require'=>'用户名必须',
        'username.unique'=>'用户已存在'
    );



}